package com.example.databasepj.mapper;

import com.example.databasepj.entity.UserEntity;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;
@Mapper
@Repository
public interface UserMapper {
    List<UserEntity> getAll();

    UserEntity selectUserById(int id);
    void updateUserData(UserEntity userEntity);
    void deleteUserByUserId(int id);

    int insertUser(UserEntity userEntity);

//    UserEntity selectUserByName(String name);
//    UserEntity selectUserByNameAndPw(String name,String password);

    //boolean loginSuccess(int id, String password);//返回登录是否成功

}
